package com.bocloud.cmp.model;

import java.util.List;

public class NetworkModel {

	private String name; // 名称

	private String networkId; // 网络ID

	private String type;// 网络类型

	private String status; // 状态

	private Boolean shared;// 是否共享

	private Integer portNum;// 端口数

	private Boolean adminStateup;

	private List<SubnetModel> subnets;

	private String tenant;

	private String networkVal;

	private Boolean isRouterExternal;// 是否外部访问

	private String segmentationId;// 段Id

	private String phyNetwork;// 物理网络

	private List<PortGroupModel> groups;

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the networkId
	 */
	public String getNetworkId() {
		return networkId;
	}

	/**
	 * @param networkId
	 *            the networkId to set
	 */
	public void setNetworkId(String networkId) {
		this.networkId = networkId;
	}

	/**
	 * @return the type
	 */
	public String getType() {
		return type;
	}

	/**
	 * @param type
	 *            the type to set
	 */
	public void setType(String type) {
		this.type = type;
	}

	/**
	 * @return the status
	 */
	public String getStatus() {
		return status;
	}

	/**
	 * @param status
	 *            the status to set
	 */
	public void setStatus(String status) {
		this.status = status;
	}

	/**
	 * @return the shared
	 */
	public Boolean getShared() {
		return shared;
	}

	/**
	 * @param shared
	 *            the shared to set
	 */
	public void setShared(Boolean shared) {
		this.shared = shared;
	}

	/**
	 * @return the portNum
	 */
	public Integer getPortNum() {
		return portNum;
	}

	/**
	 * @param portNum
	 *            the portNum to set
	 */
	public void setPortNum(Integer portNum) {
		this.portNum = portNum;
	}

	/**
	 * @return the adminStateup
	 */
	public Boolean getAdminStateup() {
		return adminStateup;
	}

	/**
	 * @param adminStateup
	 *            the adminStateup to set
	 */
	public void setAdminStateup(Boolean adminStateup) {
		this.adminStateup = adminStateup;
	}

	/**
	 * @return the subnets
	 */
	public List<SubnetModel> getSubnets() {
		return subnets;
	}

	/**
	 * @param subnets
	 *            the subnets to set
	 */
	public void setSubnets(List<SubnetModel> subnets) {
		this.subnets = subnets;
	}

	/**
	 * @return the tenant
	 */
	public String getTenant() {
		return tenant;
	}

	/**
	 * @param tenant
	 *            the tenant to set
	 */
	public void setTenant(String tenant) {
		this.tenant = tenant;
	}

	/**
	 * @return the networkVal
	 */
	public String getNetworkVal() {
		return networkVal;
	}

	/**
	 * @param networkVal
	 *            the networkVal to set
	 */
	public void setNetworkVal(String networkVal) {
		this.networkVal = networkVal;
	}

	/**
	 * @return the isRouterExternal
	 */
	public Boolean getIsRouterExternal() {
		return isRouterExternal;
	}

	/**
	 * @param isRouterExternal
	 *            the isRouterExternal to set
	 */
	public void setIsRouterExternal(Boolean isRouterExternal) {
		this.isRouterExternal = isRouterExternal;
	}

	/**
	 * @return the segmentationId
	 */
	public String getSegmentationId() {
		return segmentationId;
	}

	/**
	 * @param segmentationId
	 *            the segmentationId to set
	 */
	public void setSegmentationId(String segmentationId) {
		this.segmentationId = segmentationId;
	}

	/**
	 * @return the phyNetwork
	 */
	public String getPhyNetwork() {
		return phyNetwork;
	}

	/**
	 * @param phyNetwork
	 *            the phyNetwork to set
	 */
	public void setPhyNetwork(String phyNetwork) {
		this.phyNetwork = phyNetwork;
	}

	/**
	 * @return the groups
	 */
	public List<PortGroupModel> getGroups() {
		return groups;
	}

	/**
	 * @param groups
	 *            the groups to set
	 */
	public void setGroups(List<PortGroupModel> groups) {
		this.groups = groups;
	}

	public NetworkModel() {
	}

	public NetworkModel(String name, String networkId, String type, String status, Boolean shared, Boolean adminStateup,
			List<SubnetModel> subnets, String tenant, String networkVal, Integer portNum) {
		super();
		this.name = name;
		this.networkId = networkId;
		this.type = type;
		this.status = status;
		this.shared = shared;
		this.adminStateup = adminStateup;
		this.subnets = subnets;
		this.tenant = tenant;
		this.networkVal = networkVal;
		this.portNum = portNum;
	}

}